]> dgit.raspbian.org Git - opencv.git/commitdiff
Fix FTBFS with VTK 9.6
authorAdrian Bunk <bunk@debian.org>
Sat, 19 Sep 2026 09:07:54 +0000 (17:07 +0800)
committerAron Xu <aron@debian.org>
Sat, 19 Sep 2026 09:07:54 +0000 (17:07 +0800)
Bug-Debian: https://bugs.debian.org/1142180

Gbp-Pq: Name vtk-9.6.patch

contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
contrib/modules/viz/src/widget.cpp

index e2d338066e39c95f88728da9580b479bf03f84c6..9896291f4c87619e83f10613a4c7c226eeea9a26 100644 (file)
@@ -45,6 +45,8 @@
 
 #include "../precomp.hpp"
 
+#include <iostream>
+
 namespace cv { namespace viz
 {
     vtkStandardNewMacro(vtkVizInteractorStyle)
@@ -96,7 +98,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(const String &file)
     snapshot_writer->SetFileName(file.c_str());
     snapshot_writer->Write();
 
-    cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
+    std::cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////////
@@ -118,7 +120,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const String &file)
     exporter->SetInput(Interactor->GetRenderWindow());
     exporter->Write();
 
-    cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
+    std::cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
 }
 
 void cv::viz::vtkVizInteractorStyle::exportScene()
index b46d3d1ce06366e6a96bbf9375bf84acbb61d58f..3bfcd6a618bef897238bf0f937839018a981a91f 100644 (file)
@@ -45,6 +45,8 @@
 
 #include "precomp.hpp"
 
+#include <iostream>
+
 ///////////////////////////////////////////////////////////////////////////////////////////////
 /// widget implementation